<template>
<div class="back-wrap">
<div class="back" @click="goback">
      <img src="../assets/images/back.png" /><span>{{
          title
      }}</span>
    </div>
    </div>
</template>

<script setup>
defineProps({
  title: String
});
const goback = () => {
  history.go(-1);
};
</script>

<style lang="less" scoped>
.back-wrap {
  position:absolute;
  top: 20px;
  z-index: 999;
  left: 0;
}
  .back {
    font-size: 24px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #333333;
    line-height: 33px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    width:100vw;
    img {
      position: absolute;
      left: 20px;
      width: 10px;
      height: 18px;
    }
    span {
     text-align: center;
    }
  }

</style>
